package tset1;
//⽅法1 继承 Thread 类
public class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("这是一个线程");
    }
    public static void main(String[] args) {
        MyThread t1=new MyThread();
        t1.start();
    }
}
